package consigna2;

public class Hashing {

	public static Integer hash(String word) {
		Integer hash = 0;
		
		for (int i = 1; i < word.length(); i++) {
			hash += word.charAt(i)*i + 1;
		}
		
		return hash;
	}
	
}
